package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.LanguageDao;
import com.oscarmovie.model.Language;

public class LanguageServiceImpl implements LanguageService{
	private LanguageDao languageDao;

	public void setLanguageDao(LanguageDao languageDao) {
		this.languageDao = languageDao;
	}

	public LanguageDao getLanguageDao() {
		return languageDao;
	}

	
	public void save(Language language) {
		languageDao.save(language);
	}

	
	public Language load(int id) {
		Language language =  languageDao.load(id);
		return language;
	}

	
	public List<Language> loadAll() {
		return languageDao.loadAll();
	}
}
